<?php
if(!defined('APP')) die('error!') ;
//require './public_function.php';
//dbInit();
$link = mysqli_connect('localhost','root','','itcast');
if(!$link) {
    die('链接数据库失败'.mysqli_error($link));
}
mysqli_query($link,'set names utf8');?>
<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <title>员工信息修改表</title>
    </head>
<body>
<div class="box">
    <h1>修改员工信息</h1>
    <form method="post" action=" ./empUpdata.php">
        <table>
            <tr><th>姓名:</th><td><input type="text" name="e_name" value="<?php echo $emp_info['e_name']; ?>" /></td></tr>
            <tr><th>所属部门:</th><td><input type="text" name="e_dept" value="<?php echo $emp_info['e_dept']; ?>" /></td></tr>
            <tr><th>出生年月:</th><td><input id="date_of_birth" name="date_of_birth" value="<?php echo $emp_info['date_of_birth']; ?>"/></td></tr>
            <tr><th>入职日期:</th><td><input id="date_of_entry" name="date_of_entry" value="<?php echo $emp_info['date_of_entry']; ?>"/></td></tr>
            <tr><td colspan="2">
                    <input type="submit" value="保存资料" class="button">
                    <input type="reset" value="重新填写" class="button">
                </td>
            </tr>
        </table>
    </form>
</div>
</body>
</html>
